package bus;

import java.util.List;

import dao.QuestionDAO;
import dto.QuestionDTO;

public class QuestionBUS {
	public QuestionDTO info = new QuestionDTO();
	public QuestionDAO data = new QuestionDAO(null);
	
	public void setInfo(QuestionDTO question) {
		this.info = question;
	}
	
	public QuestionDTO getInfo() {
		return this.info;
	}
	
	public void addQuestion() {
		data.addQuestion(info);
	}
	
	public List<QuestionDTO> getAllQuestions(){
		return data.getAllQuestions();
	}
	
	public boolean updateQuestion(){
		return data.updateQuestion(info);
	}
	
	public void deleteQuestion(){
		data.deleteQuestion(info);
	}
	
	public void deleteAllQuestions(){
		data.deleteAllQuestions();
	}
	
	public int getQuestionCount(){
		return data.getQuestionCount();
	}
}
